﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MINERP.MODEL.FoundationModel;

namespace MINERP.InnerFactory.Forms
{
    public partial class FrmFactorySelect : Form
    {
        public FrmFactorySelect()
        {
            InitializeComponent();
        }

        public List<OutProcessShop_Info> List { get; set; }

        private void FrmFactorySelect_Load(object sender, EventArgs e)
        {
            comboBoxFactorySelect.DisplayMember = "OutShopName";
            comboBoxFactorySelect.ValueMember = "OutShopId";
            comboBoxFactorySelect.DataSource = List;
        }

        private void comboBoxFactorySelect_SelectionChangeCommitted(object sender, EventArgs e)
        {
          // this.DialogResult = DialogResult.OK;
        }

        private void buttonok_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

   
    }
}
